package com.example.communist_app_api.db.dao;

import com.example.communist_app_api.db.dto.UserDTO;
import com.example.communist_app_api.db.pojoDto.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserDao {
    User getUserByUserName(String UserName);

    void editPersonMessage( User user);

    User getUserByUserId(Integer id);

    List<User> getAllUser(@Param("organizationId") Integer organizationId);

    List<User> getAllUserBriefInfo(Integer organizationId);

    List<User> getUserListByIds(List<Integer> ids);


    Boolean updateUserMessage(User user);

    void deleteUserMessage(Integer userId);

    int getUserNumByUserName(String name);

    Integer searchIdByOpenId(String openId);

    Integer insertUser(User user);

    List<User> getAllAuditUser(@Param("phone") String phone, @Param("organizationId") Integer organizationId);

    User getUserByUserNameAndOrganizationId(@Param("name") String userName, @Param("organizationId") Integer organizationId);

    User getUserBriefInfoByUserId(Integer id);

    List<UserDTO> getUserDTOListByUserIdList(@Param("userIdList") List<Integer> userIdList);

<<<<<<< HEAD
    List<String> getUserNameListByUserIdList(@Param("userIdList")List<Integer> userIdList);
=======
    User getNamePhoto(Integer userId);
>>>>>>> ead867a76a2d61b0673929f4330d549b1f515bf4
}
